/* Styles pour les placeholders de chargement améliorés */
.media-placeholder {
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease-out;
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(110deg, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Bouton de lecture pour les vidéos */
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-play-button:hover {
  background-color: rgba(200, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Indicateur de chargement */
.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 10;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Amélioration de la transition des images */
.photos-container img {
  transition: opacity 0.5s ease-in-out, transform 0.3s ease;
}

.photos-container img:hover {
  transform: scale(1.02);
  z-index: 2;
}

/* Style pour les erreurs de chargement */
.media-error {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffebee;
  color: #c62828;
  font-size: 14px;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  border: 1px dashed #ef9a9a;
}

/* Optimisation pour les écrans tactiles */
@media (hover: none) {
  .photos-container img:hover {
    transform: none;
  }
  
  .video-play-button {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }
}

/* Animation de fondu pour les images et vidéos */
.photos-container img,
.photos-container video {
  transition: opacity 0.3s ease-in;
}

/* News du team */
.News {
  padding: 0;
  text-align: center;
  line-height: 1; 
  font-weight: bold;
  font-size: 18px;
}

/* Conteneur vidéo dans la grille */
.video-container {
  position: relative;
  width: 250px;
  height: 170px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-container video {
  width: 250px;
  height: 170px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.photos h1 {
  padding: 0;
  text-align: center;
  line-height: 1.5;
  font-weight: bold;
  font-size: 40px;
}
.photos h2 {
  padding: 0;
  text-align: center;
  line-height: 1.5;
  font-weight: bold;
  font-size: 20px;
}
.photo-title {
  padding: 0;
  text-align: center;
  line-height: 1.5;
  font-weight: bold;
  font-size: 20px;
}
/* Section Compte rendu */
.compte-rendu {
  margin: 32px auto;
  padding: 28px 24px 22px 24px;
  background: #232526;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  max-width: 700px;
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
  position: relative;
  border: 1.5px solid #444;
}
.compte-rendu:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  border-color: #ff2d2d22;
}
.compte-rendu h2 {
  font-size: 2em;
  margin-bottom: 12px;
  text-align: center;
  color: #ff2d2d;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px #18191a, 0 1px 0 #fff2;
}
.compte-rendu .intro {
  font-size: 1.13em;
  margin-bottom: 18px;
  color: #fff;
  font-style: italic;
  background: #2d2f31;
  border-left: 3px solid #ff2d2d;
  padding: 8px 16px;
  border-radius: 6px;
}
.Compte-rendu-de-course {
  text-align: center;
  margin-top: 18px;
  margin-bottom: 0;
}

.Compte-rendu-de-course h2 {
  font-size: 40px;
  margin-bottom: 15px; /* Ajustez cette valeur pour l'espacement entre le titre et le bouton */
}

.Compte-rendu-de-course button {
  background-color: #ff0000;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 1em;
  border-radius: 5px;
  margin-top: 20px; /* Vous pouvez ajuster la valeur ici pour l'espacement supplémentaire entre le titre et le bouton */
  text-align: center;
  transition: background-color 0.3s ease;
}

.Compte-rendu-de-course button:hover {
  background-color: #333333;
}

.read-more {
  background-color: #ff2d2d;
  color: #fff;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  font-size: 1em;
  border-radius: 5px;
  margin-top: 10px;
  text-align: center;
  transition: background-color 0.3s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #ff2d2d22;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.read-more:hover {
  background-color: #ffd700;
  color: #232526;
  box-shadow: 0 4px 16px #ff2d2d33;
}

.full-text {
  font-size: 1.08em;
  margin-top: 10px;
  display: none; /* caché par défaut */
  text-align: left;
  padding: 0 8px;
  color: #fff;
  text-shadow: 0 1px 4px #18191a;
}
.compte-rendu h3 {
  color: #ffd700;
  font-size: 1.13em;
  margin-top: 22px;
  margin-bottom: 7px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 7px;
  text-shadow: 0 1px 4px #18191a, 0 1px 0 #fff2;
}
.compte-rendu h3:before {
  content: '⏱️';
  font-size: 1.1em;
  margin-right: 4px;
  color: #ff2d2d;
}
.compte-rendu h3:first-of-type:before {
  content: '🔧';
}
.compte-rendu h3:last-of-type:before {
  content: '🥇';
}
.compte-rendu p {
  font-size: 1.08em;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px #18191a;
}
/* Grille des photos */
.photos-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 photos par ligne */
  gap: 15px; /* Espacement entre les images */
  padding: 20px;
}

/* Chaque photo */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Effet de zoom au survol */
.photo:hover {
  transform: scale(1.05);
}
.photo {
  transition: opacity 0.5s ease-in;
}
#see-more {
  background-color: #ff0000;
  color: white;
  padding: 10px 10px;
  border: none;
  cursor: pointer;
  font-size: 1em;
  border-radius: 5px;
  margin-top: 20px;
  text-align: center;
  margin-bottom: 10px;
}

/* Images et vidéos dans la grille */
.photo img,
.photo video {
  width: 250px;
  height: 170px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.photo img:hover,
.photo video:hover {
  transform: scale(1.05);
}

/* Styles pour les flèches de navigation */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.nav-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
  left: 20px;
}

.nav-arrow.next {
  right: 20px;
}

/* Modale (Lightbox) */
.modal {
  display: none; /* Caché par défaut */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Fond sombre */
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Vidéo dans le modal */
#modal-video {
  max-width: 90%;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  margin: auto;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay img {
  max-width: 90%;
  max-height: 90%;
}

/* Bouton pour fermer la modale */
.close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #fdfdfd;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
}

/* Classement */
.classement {
  background: #18191a;
  padding: 18px 2vw 16px 2vw;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  text-align: center;
  max-width: 900px;
  margin: 24px auto 24px auto;
  border: 1px solid #232526;
}
.classement h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: none;
}
.classement-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  font-size: 1.08rem;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  margin: 0 auto;
}
.classement-table th,
.classement-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #232526;
  background: #18191a;
  transition: none;
}
.classement-table th {
  background: #232526;
  font-size: 1em;
  color: #ffd700;
  border-top: none;
  border-bottom: 2px solid #ffd700;
  letter-spacing: 0.2px;
}
.classement-table tr:nth-child(even) td {
  background: #202124;
}
.classement-table tr:hover td {
  background: #232526;
  color: #ffd700;
  box-shadow: none;
  cursor: pointer;
  transform: none;
}
.classement-table td {
  border-left: none;
  border-right: none;
  font-weight: 500;
  font-size: 0.98em;
}
.classement-table td.position-badge {
  font-weight: bold;
  font-size: 1.25em;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-block;
  background: linear-gradient(90deg, #ffd700 0%, #bfa100 100%);
  color: #111;
  box-shadow: 0 1px 3px #ffd70033;
  line-height: 38px;
  text-align: center;
  margin: 0 auto;
  border: 2px solid #fff;
  text-shadow: 1px 1px 2px #fff, 0 1px 6px #bfa100;
}
.djrc-row {
  background: #ff2d2d !important;
  color: #fff !important;
  font-weight: bold;
  font-size: 1.18em;
  letter-spacing: 0.5px;
  border-top: 2px solid #ffd700;
  border-bottom: 2px solid #ffd700;
}
.classement-table tr.djrc-row:hover td {
  background: #b80000 !important;
  color: #ffd700 !important;
}
@media (max-width: 700px) {
  .classement {
    padding: 6px 1vw 6px 1vw;
    width: 99vw;
    min-width: 0;
    max-width: 99vw;
  }
  .classement h2 {
    font-size: 1.1rem;
  }
  .classement-table {
    font-size: 0.92rem;
  }
  .classement-table th, .classement-table td {
    padding: 4px 2px;
  }
}
hamburger {
  display: none;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  header {
    position: relative;
    z-index: 1000;
  }

  /* Afficher le hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
  }

  /* Menu caché par défaut */
  nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    z-index: 999;
  }

  /* Menu affiché quand .show est actif */
  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 20px 0;
  }

  nav ul li a {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
  }
}
h1, h2, h3, h4, h5, h6 {
  font-family: Arial, sans-serif !important;
}
h1 {
  text-align: center;
  margin-top: 30px;
  font-size: 2em;
  color: #ffffff;
}

.albums {
  display: flex;
  flex-direction: row;
  gap: 28px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 32px 0 18px 0;
  max-width: 100vw;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #ff2d2d #232526;
}
.albums::-webkit-scrollbar {
  height: 10px;
}
.albums::-webkit-scrollbar-thumb {
  background: #ff2d2d;
  border-radius: 6px;
}
.albums::-webkit-scrollbar-track {
  background: #232526;
  border-radius: 6px;
}
.album {
  min-width: 240px;
  max-width: 320px;
  flex: 0 0 260px;
  background: #18191a;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  position: relative;
  z-index: 1;
  border: 2.5px solid transparent;
  transition: box-shadow 0.18s, border 0.18s, transform 0.18s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.album:hover, .album.active {
  box-shadow: 0 12px 32px #ff2d2d22, 0 2px 12px #0008;
  border: 2.5px solid #ff2d2d;
  transform: translateY(-4px) scale(1.01);
}
/* SUPPRESSION de .album::before (ronds timeline) */
.album img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
  box-shadow: 0 2px 8px #0002;
}
.album h2 {
  margin: 0 0 8px 0;
  font-size: 1.18em;
  color: #fff;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-align: center;
  background: repeating-linear-gradient(135deg, #232526 0 8px, #2a2c2e 8px 16px);
  /* effet carbone */
  border-radius: 0 0 16px 16px;
  padding: 12px 0 8px 0;
  box-shadow: 0 2px 8px #0003;
  position: relative;
  z-index: 1;
}
.album .album-meta {
  color: #ffd700;
  font-size: 1em;
  margin-bottom: 6px;
  text-align: center;
  font-weight: 500;
}
.album .album-desc {
  color: #e0e3e7;
  font-size: 0.98em;
  text-align: center;
}
.album-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  width: 100%;
}
@media (max-width: 900px) {
  .albums {
    gap: 16px;
    padding: 18px 0 10px 0;
  }
  .album {
    min-width: 180px;
    max-width: 90vw;
    flex-basis: 180px;
  }
  .album img {
    height: 110px;
  }
}
@media (max-width: 700px) {
  .albums {
    gap: 10px;
    padding: 10px 0 0 0;
  }
  .album {
    min-width: 80vw;
    max-width: 98vw;
    flex-basis: 80vw;
  }
  .album img {
    height: 90px;
  }
}

#album-view {
  padding: 20px;
}

#album-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.photo img,
.photo video {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

button, .read-more {
  display: inline-block;
  background: linear-gradient(90deg, #ff2d2d 0%, #ff4d4d 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 13px 32px;
  font-size: 1.13em;
  font-weight: bold;
  box-shadow: 0 4px 18px rgba(255,45,45,0.13), 0 1.5px 6px #0002;
  cursor: pointer;
  margin: 18px 8px 18px 8px;
  letter-spacing: 0.5px;
  transition: background 0.25s, box-shadow 0.18s, transform 0.18s, color 0.18s;
  outline: none;
  text-align: center;
}
button:hover, .read-more:hover {
  background: linear-gradient(90deg, #ff4d4d 0%, #ff2d2d 100%);
  color: #fff;
  box-shadow: 0 8px 32px #ff2d2d33, 0 2px 12px #0008;
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.08);
}

/* Styles de la modale - définition supprimée car dupliquée plus haut */

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .album {
    width: 180px;
  }

  .photo img,
  .photo video,
  .video-container {
    width: 200px;
    height: 140px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.5em;
  }

  .album {
    width: 45%;
  }

  .photo img,
  .photo video {
    width: 100%;
    height: auto;
  }
  
  .photos-container {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
  }
}

@media (max-width: 480px) {
  .album {
    width: 100%;
  }

  .album h2 {
    font-size: 1em;
  }

  .photo img,
  .photo video {
    width: 100%;
    height: auto;
  }
  
  .photos-container {
    grid-template-columns: 1fr; /* 1 colonne sur très petit écran */
  }

  button {
    width: 90%;
    font-size: 0.9em;
  }
}

.racing-banner {
  background: #000 !important;
  text-align: center;
}
.racing-banner h1 {
  color: #fff;
  font-size: 50px;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 0 2px 8px #18191a, 0 1px 0 #fff2;
  margin-top: 20px !important;
  margin-bottom: px;
}
.racing-section-title {
  text-align: center;
  font-size: 2em;
  font-weight: 800;
  padding: 0;
  border-radius: 0;
  margin: 0 0 18px 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
  margin-top: 20px !important;
  margin-bottom: 18px;
}
.racing-divider {
  display: none;
}
.section-bg-light {
  background: #18191a !important;
}
.section-bg-dark, .section-bg-white {
  background: #090909 !important;
}
.compte-rendu, .classement, .albums, .collections, #album-view {
  background: #18191a !important;
}
@media (max-width: 900px) {
  .racing-banner h1 {
    font-size: 35px;
  }
  .racing-section-title {
    font-size: 1.1em;
    padding: 0;
  }

}

.classement-general-entete {
  background: #232526;
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
  border-radius: 8px 8px 0 0;
  padding: 12px 0;
  text-align: center;
}

.racing-banner h1,
.racing-section-title,
.album h2 {
  font-family: Arial, sans-serif !important;
  font-weight: bold !important;
}
body {
  background: #111 !important;
}
